home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / tex / sf2pk200.zip / 2PK.BAT < prev    next >
DOS Batch File  |  1992-04-15  |  1KB  |  38 lines

  1. @echo off
  2. echo off
  3. :%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  4. : This batch file uses SFPtoPK to convert HP softfonts into TeX PK
  5. : files (and their associated TFM files).
  6. :
  7. : %1 ==> the name of the HP softfont to convert (without path or
  8. :        extension)
  9. : %2 ==> the name of the TeX PK and TFM files (without path or
  10. :        extension), for example:
  11. :
  12. :        2PK cen10 cen10
  13. :        2PK ame12 ame12 /XAdj:-5 /SpaceChar:32
  14. :        2PK trr14e1a tr10e1
  15. :
  16. : Note: 1) the lines below assume that SFPTOPK.EXE and PLTOTF.EXE are
  17. :          in the path (or the current directory), you can add paths
  18. :          if that is appropriate.
  19. :
  20. :       2) you should change D:\FONTS to reflect the place where you
  21. :          keep HP softfonts, F:\OTHERTFM to reflect where you keep
  22. :          TeX TFM files, and F:\OTHERFNT to reflect where you keep
  23. :          TeX PK files.
  24. :%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  25. :
  26. if (%1) == () goto abort
  27. sfptopk D:\FONTS\%1 F:\OTHERFNT\%2 .\%2 %3 %4 %5 %6 %7 %8 %9
  28. if errorlevel 1 goto end
  29. pltotf .\%2 F:\OTHERTFM\%2
  30. del %2.PL
  31. goto end
  32. :abort
  33. Echo Usage: 2PK sfpfile pkfile
  34. Echo  e.g.: 2PK trr14usa tr10us
  35. Echo          to convert TRR14USA.SFP
  36. :end
  37.  
  38.